#include <wx/wx.h>
#include "src/SourceContainer.h"
#include <cassert>
#include <iostream>

void test_CheckFormat()
{
    wxArrayString filters;
    wxArrayString files;
    filters.Add(_T(".avi"));
    filters.Add(_T(".mpeg"));
    filters.Add(_T(".ogg"));
    
    files.Add(_T("first.txt"));
    files.Add(_T("first.avi"));
    files.Add(_T("first.avi1"));
    files.Add(_T("firstavi"));

    assert(CheckFormat(files[0], filters) == false);
    assert(CheckFormat(files[1], filters) == true);
    assert(CheckFormat(files[2], filters) == false);
    assert(CheckFormat(files[3], filters) == false);
}

int main(int argc, char **argv)
{
    test_CheckFormat();
    return 0;
}